import request from '@/utils/request'

// 生成图件
export function supergraph(data) {
  return request({
    url: '/legend/supergraph',
    method: 'post',
    data
  })
}
// 根据id查询报告
export function findFileById(params) {
  return request({
    url: '/attachment/findFileById',
    method: 'get',
    params
  })
}
// 根据评估条件查询图件
export function getByParam(params) {
  return request({
    url: '/taskMaps/getByParam',
    method: 'get',
    params:params
  })
}
// 根据评估条件查询图件
export function getMaps(params) {
  return request({
    url: '/calculationResult/getMaps',
    method: 'get',
    params:params
  })
}
// 下载
export function downloadMaps(data) {
  return request({
    url: '/calculationResult/downloadMaps',
    method: 'post',
    data:data,
    responseType: 'blob',
    headers:{ 'Content-Type': 'application/json; application/octet-stream'},
  })
}
